package com.ruoyi.system.service.customer.impl;

import com.ruoyi.system.domain.supe.TerraceTel;
import com.ruoyi.system.mapper.customer.TerraceTelMapper;
import com.ruoyi.system.service.customer.TerraceTelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TerraceTelServiceImpl implements TerraceTelService {
    @Autowired
    private TerraceTelMapper terraceTelMapper;

    /**
     * 查询平台电话
     *
     * @param telId 平台电话ID
     * @return 平台电话
     */
    @Override
    public TerraceTel selectTerraceTelById(Integer telId)
    {
        return terraceTelMapper.selectTerraceTelById(telId);
    }

    /**
     * 查询平台电话列表
     *
     * @param terraceTel 平台电话
     * @return 平台电话
     */
    @Override
    public List<TerraceTel> selectTerraceTelList(TerraceTel terraceTel)
    {
        return terraceTelMapper.selectTerraceTelList(terraceTel);
    }

    /**
     * 新增平台电话
     *
     * @param terraceTel 平台电话
     * @return 结果
     */
    @Override
    public int insertTerraceTel(TerraceTel terraceTel)
    {
        return terraceTelMapper.insertTerraceTel(terraceTel);
    }

    /**
     * 修改平台电话
     *
     * @param terraceTel 平台电话
     * @return 结果
     */
    @Override
    public int updateTerraceTel(TerraceTel terraceTel)
    {
        return terraceTelMapper.updateTerraceTel(terraceTel);
    }

    /**
     * 批量删除平台电话
     *
     * @param telIds 需要删除的平台电话ID
     * @return 结果
     */
    @Override
    public int deleteTerraceTelByIds(Integer[] telIds)
    {
        return terraceTelMapper.deleteTerraceTelByIds(telIds);
    }

    /**
     * 删除平台电话信息
     *
     * @param telId 平台电话ID
     * @return 结果
     */
    @Override
    public int deleteTerraceTelById(Integer telId)
    {
        return terraceTelMapper.deleteTerraceTelById(telId);
    }
}
